package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by DK on 16/10/27.
 * 物流公司实体
 */
@Entity
@Table(name = "mall_logistics")
@DynamicInsert(value = true)
@DynamicUpdate(value = true)
public class MallLogistics extends IDEntityMall{

    @Column(columnDefinition = "varchar(100) comment '名称'")
    private String name;
    @Column(columnDefinition = "varchar(30) comment '快递公司编码'")
    private String logisticsCode;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogisticsCode() {
        return logisticsCode;
    }

    public void setLogisticsCode(String logisticsCode) {
        this.logisticsCode = logisticsCode;
    }

    @Override
    public String toString() {
        return "MallLogistics{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", logisticsCode='" + logisticsCode + '\'' +
                ", dateCreated=" + dateCreated +
                ", lastUpdated=" + lastUpdated +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
